home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Applications / gdbm-1.7.3 / source / config.status < prev    next >
Text File  |  1994-05-21  |  7KB  |  186 lines

  1. #!/bin/sh
  2. # Generated automatically by configure.
  3. # Run this file to recreate the current configuration.
  4. # This directory was configured as follows,
  5. # on host dec-5.CE.Berkeley.EDU:
  6. #
  7. # ./configure 
  8.  
  9. for arg
  10. do
  11.   case "$arg" in
  12.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13.     echo running ${CONFIG_SHELL-/bin/sh} ./configure 
  14.     exec ${CONFIG_SHELL-/bin/sh} ./configure  ;;
  15.     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  16.   esac
  17. done
  18.  
  19. trap 'rm -fr Makefile autoconf.h conftest*; exit 1' 1 3 15
  20. CC='gcc'
  21. CPP='gcc -E'
  22. INSTALL='/usr/bin/install -c'
  23. INSTALL_PROGRAM='$(INSTALL)'
  24. INSTALL_DATA='$(INSTALL) -m 644'
  25. RANLIB='ranlib'
  26. LIBOBJS=''
  27. ALLOCA=''
  28. LIBS=' -ldbm'
  29. srcdir='.'
  30. prefix=''
  31. exec_prefix=''
  32. prsub=''
  33. extrasub=''
  34.  
  35. top_srcdir=$srcdir
  36.  
  37. CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  38. for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  39.   srcdir=$top_srcdir
  40.   # Remove last slash and all that follows it.  Not all systems have dirname.
  41.   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  42.   if test "$dir" != "$file"; then
  43.     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  44.     test ! -d $dir && mkdir $dir
  45.   fi
  46.   echo creating $file
  47.   rm -f $file
  48.   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  49.   sed -e "
  50. $prsub
  51. $extrasub
  52. s%@CC@%$CC%g
  53. s%@CPP@%$CPP%g
  54. s%@INSTALL@%$INSTALL%g
  55. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  56. s%@INSTALL_DATA@%$INSTALL_DATA%g
  57. s%@RANLIB@%$RANLIB%g
  58. s%@LIBOBJS@%$LIBOBJS%g
  59. s%@ALLOCA@%$ALLOCA%g
  60. s%@LIBS@%$LIBS%g
  61. s%@srcdir@%$srcdir%g
  62. s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  63. fi; done
  64.  
  65. CONFIG_HEADERS=${CONFIG_HEADERS-"autoconf.h"}
  66. for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  67. echo creating $file
  68.  
  69. # These sed commands are put into SEDDEFS when defining a macro.
  70. # They are broken into pieces to make the sed script easier to manage.
  71. # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  72. # is the cpp macro being defined and VALUE is the value it is being given.
  73. # Each defining turns into a single global substitution command.
  74. #
  75. # SEDd sets the value in "#define NAME VALUE" lines.
  76. SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  77. SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  78. SEDdC='\3'
  79. SEDdD='@g'
  80. # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  81. SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  82. SEDuB='\([     ]\)@\1#\2define\3'
  83. SEDuC=' '
  84. SEDuD='\4@g'
  85. # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  86. SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  87. SEDeB='$@\1#\2define\3'
  88. SEDeC=' '
  89. SEDeD='@g'
  90. rm -f conftest.sed
  91. cat >> conftest.sed <<CONFEOF
  92. ${SEDdA}HAVE_STDLIB_H${SEDdB}HAVE_STDLIB_H${SEDdC}1${SEDdD}
  93. ${SEDuA}HAVE_STDLIB_H${SEDuB}HAVE_STDLIB_H${SEDuC}1${SEDuD}
  94. ${SEDeA}HAVE_STDLIB_H${SEDeB}HAVE_STDLIB_H${SEDeC}1${SEDeD}
  95. ${SEDdA}HAVE_STRING_H${SEDdB}HAVE_STRING_H${SEDdC}1${SEDdD}
  96. ${SEDuA}HAVE_STRING_H${SEDuB}HAVE_STRING_H${SEDuC}1${SEDuD}
  97. ${SEDeA}HAVE_STRING_H${SEDeB}HAVE_STRING_H${SEDeC}1${SEDeD}
  98. ${SEDdA}HAVE_SYS_FILE_H${SEDdB}HAVE_SYS_FILE_H${SEDdC}1${SEDdD}
  99. ${SEDuA}HAVE_SYS_FILE_H${SEDuB}HAVE_SYS_FILE_H${SEDuC}1${SEDuD}
  100. ${SEDeA}HAVE_SYS_FILE_H${SEDeB}HAVE_SYS_FILE_H${SEDeC}1${SEDeD}
  101. CONFEOF
  102. cat >> conftest.sed <<CONFEOF
  103. ${SEDdA}HAVE_UNISTD_H${SEDdB}HAVE_UNISTD_H${SEDdC}1${SEDdD}
  104. ${SEDuA}HAVE_UNISTD_H${SEDuB}HAVE_UNISTD_H${SEDuC}1${SEDuD}
  105. ${SEDeA}HAVE_UNISTD_H${SEDeB}HAVE_UNISTD_H${SEDeC}1${SEDeD}
  106. ${SEDdA}HAVE_FCNTL_H${SEDdB}HAVE_FCNTL_H${SEDdC}1${SEDdD}
  107. ${SEDuA}HAVE_FCNTL_H${SEDuB}HAVE_FCNTL_H${SEDuC}1${SEDuD}
  108. ${SEDeA}HAVE_FCNTL_H${SEDeB}HAVE_FCNTL_H${SEDeC}1${SEDeD}
  109. ${SEDdA}HAVE_SYS_TYPES_H${SEDdB}HAVE_SYS_TYPES_H${SEDdC}1${SEDdD}
  110. ${SEDuA}HAVE_SYS_TYPES_H${SEDuB}HAVE_SYS_TYPES_H${SEDuC}1${SEDuD}
  111. ${SEDeA}HAVE_SYS_TYPES_H${SEDeB}HAVE_SYS_TYPES_H${SEDeC}1${SEDeD}
  112. CONFEOF
  113. cat >> conftest.sed <<CONFEOF
  114. ${SEDdA}HAVE_MEMORY_H${SEDdB}HAVE_MEMORY_H${SEDdC}1${SEDdD}
  115. ${SEDuA}HAVE_MEMORY_H${SEDuB}HAVE_MEMORY_H${SEDuC}1${SEDuD}
  116. ${SEDeA}HAVE_MEMORY_H${SEDeB}HAVE_MEMORY_H${SEDeC}1${SEDeD}
  117. ${SEDdA}HAVE_LIBDBM${SEDdB}HAVE_LIBDBM${SEDdC}1${SEDdD}
  118. ${SEDuA}HAVE_LIBDBM${SEDuB}HAVE_LIBDBM${SEDuC}1${SEDuD}
  119. ${SEDeA}HAVE_LIBDBM${SEDeB}HAVE_LIBDBM${SEDeC}1${SEDeD}
  120. ${SEDdA}HAVE_RENAME${SEDdB}HAVE_RENAME${SEDdC}1${SEDdD}
  121. ${SEDuA}HAVE_RENAME${SEDuB}HAVE_RENAME${SEDuC}1${SEDuD}
  122. ${SEDeA}HAVE_RENAME${SEDeB}HAVE_RENAME${SEDeC}1${SEDeD}
  123. CONFEOF
  124. cat >> conftest.sed <<CONFEOF
  125. ${SEDdA}HAVE_FTRUNCATE${SEDdB}HAVE_FTRUNCATE${SEDdC}1${SEDdD}
  126. ${SEDuA}HAVE_FTRUNCATE${SEDuB}HAVE_FTRUNCATE${SEDuC}1${SEDuD}
  127. ${SEDeA}HAVE_FTRUNCATE${SEDeB}HAVE_FTRUNCATE${SEDeC}1${SEDeD}
  128. ${SEDdA}HAVE_FLOCK${SEDdB}HAVE_FLOCK${SEDdC}1${SEDdD}
  129. ${SEDuA}HAVE_FLOCK${SEDuB}HAVE_FLOCK${SEDuC}1${SEDuD}
  130. ${SEDeA}HAVE_FLOCK${SEDeB}HAVE_FLOCK${SEDeC}1${SEDeD}
  131. ${SEDdA}HAVE_BCOPY${SEDdB}HAVE_BCOPY${SEDdC}1${SEDdD}
  132. ${SEDuA}HAVE_BCOPY${SEDuB}HAVE_BCOPY${SEDuC}1${SEDuD}
  133. ${SEDeA}HAVE_BCOPY${SEDeB}HAVE_BCOPY${SEDeC}1${SEDeD}
  134. CONFEOF
  135. cat >> conftest.sed <<CONFEOF
  136. ${SEDdA}HAVE_FSYNC${SEDdB}HAVE_FSYNC${SEDdC}1${SEDdD}
  137. ${SEDuA}HAVE_FSYNC${SEDuB}HAVE_FSYNC${SEDuC}1${SEDuD}
  138. ${SEDeA}HAVE_FSYNC${SEDeB}HAVE_FSYNC${SEDeC}1${SEDeD}
  139. ${SEDdA}HAVE_ALLOCA_H${SEDdB}HAVE_ALLOCA_H${SEDdC}1${SEDdD}
  140. ${SEDuA}HAVE_ALLOCA_H${SEDuB}HAVE_ALLOCA_H${SEDuC}1${SEDuD}
  141. ${SEDeA}HAVE_ALLOCA_H${SEDeB}HAVE_ALLOCA_H${SEDeC}1${SEDeD}
  142. ${SEDdA}HAVE_ST_BLKSIZE${SEDdB}HAVE_ST_BLKSIZE${SEDdC}1${SEDdD}
  143. ${SEDuA}HAVE_ST_BLKSIZE${SEDuB}HAVE_ST_BLKSIZE${SEDuC}1${SEDuD}
  144. ${SEDeA}HAVE_ST_BLKSIZE${SEDeB}HAVE_ST_BLKSIZE${SEDeC}1${SEDeD}
  145. CONFEOF
  146. # This sed command replaces #undef's with comments.  This is necessary, for
  147. # example, in the case of _POSIX_SOURCE, which is predefined and required
  148. # on some systems where configure will not decide to define it in
  149. # autoconf.h.
  150. cat >> conftest.sed <<\CONFEOF
  151. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  152. CONFEOF
  153. rm -f conftest.h
  154. # Break up the sed commands because old seds have small limits.
  155. maxsedlines=20
  156. cp $top_srcdir/$file.in conftest.h1
  157. while :
  158. do
  159.   lines=`grep -c . conftest.sed`
  160.   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  161.   rm -f conftest.s1 conftest.s2 conftest.h2
  162.   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  163.   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  164.   sed -f conftest.s1 < conftest.h1 > conftest.h2
  165.   rm -f conftest.s1 conftest.h1 conftest.sed
  166.   mv conftest.h2 conftest.h1
  167.   mv conftest.s2 conftest.sed
  168. done
  169. rm -f conftest.sed conftest.h
  170. echo "/* $file.  Generated automatically by configure.  */" > conftest.h
  171. cat conftest.h1 >> conftest.h
  172. rm -f conftest.h1
  173. if cmp -s $file conftest.h 2>/dev/null; then
  174.   # The file exists and we would not be changing it.
  175.   echo "$file is unchanged"
  176.   rm -f conftest.h
  177. else
  178.   rm -f $file
  179.   mv conftest.h $file
  180. fi
  181. fi; done
  182.  
  183.  
  184.  
  185. exit 0
  186.